#ifndef __player
#define __player
#include "PlayList.h"

void callback(void *arg);
bool elapsedCallback(void* arg);

struct Player { //in future - singleton
    void *currentSong;
    PlayList* playList;
    int currentIndex;
    int random;

    Player();
    void play(PlayList *list, int itemIndex, bool from_user = 1);

    void playNext(bool from_user = 1);

    void playPrev();

    void play(const char* path);
    void stop();
};

#endif
